package com.czkt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.czkt.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    @Select("select * from product where prod_name like concat('%',#{prodName},'%') and prod_type like concat('%',#{prodType},'%') and prod_batch like concat('%',#{prodBatch},'%')")
    IPage<Product> selectProduct(IPage<Product> productIPage,@Param("prodName")String prodName,@Param("prodType") String prodType,@Param("prodBatch") String prodBatch);
}
